import java.util.Scanner;
public class Geshihua {
  public static void main(String[] args){
    String lei;
    Scanner inp = new Scanner(System.in);
    while(true) {
      lei = inp.nextLine();
      if(lei.equals("double")) {
        double[] dou = new double[3];
        for(int i=0; i<3; i++) dou[i] = inp.nextDouble();
        System.out.printf("choice=%s\n", lei);
        System.out.printf("%-5.2f,%5.2f,%.2f\n", dou[0], dou[1], dou[2]);
        inp.nextLine();
      }
    else if(lei.equals("int")) {
    int sum=0;
    for(int i=0; i<3; i++) sum += inp.nextInt();
      System.out.printf("choice=%s\n", lei);
      System.out.printf("%d\n", sum);
      inp.nextLine();
    }
    else if(lei.equals("str")) {
    String str;
    str = inp.next();
    str = inp.next() + str;
    str = inp.next() + str;
    System.out.printf("choice=%s\n", lei);
    System.out.println(str);
    inp.nextLine();
  }
    else if(lei.equals("line")) {
      String str;
      str = inp.nextLine();
      str = str.toUpperCase();
      System.out.printf("choice=%s\n", lei);
      System.out.println(str);
    }
    else {
      System.out.printf("choice=%s\n", lei);
      System.out.println("other");
    }
}
}
}